import instance from '@/http/index.js'

//获取所有轮播图
export const getAllSwiper = () => {
    return instance.post('setting/getAllSwiper')
}

//编辑相关政策
export const editPolicy = (set_text, set_name) => {
    return instance.post('setting/editPolicy', { set_text, set_name })
}

//获取相关政策
export const getPolicy = () => {
    return instance.post('setting/getPolicy')
}

//获取单个政策
export const getOnePolicy = (set_name) => {
    return instance.post('setting/getOnePolicy', { set_name })
}

//部门设置
export const setDepartment = (set_value) => {
    return instance.post('/setting/setDepartment', { set_value })
}

//获取部门
export const getDepartment = () => {
    return instance.post('/setting/getDepartment')
}

//部门设置
export const setCollege = (set_value) => {
    return instance.post('/setting/setCollege', { set_value })
}

//获取部门
export const getCollege = () => {
    return instance.post('/setting/getCollege')
}